﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong;
public partial class 数据访问控件_DataList横向从复 : System.Web.UI.Page
{
    TongUse1 TextData = new TongUse1(); 
    protected void Page_Load(object sender, EventArgs e)
    {
        //DataList   分两列，默认是竖着排，是先竖下来排满才，排第二列，我需要横着排，就是先横着排满，才排第二行，能这样做到吗？谢谢！ 
        //设置DataList的属性RepeatDirection="Horizontal"就可以
        //RepeatColumns还可以设置你想排的列数
       // DataList1.DataSource =  TextData.SqlDataSet("select * from [book] order by bookid ").Tables[0].DefaultView;
       // DataList1.DataBind();
    }
}
